import { nFormatter } from '@/utils/nFormatter'

export default {
  backgroundColor: '#1c213e',
  tooltip: {
    formatter: function(val) {
      const { name, value } = val
      return name + '<br />缺失总条数:' + value
    }
  },
  xAxis: {
    name: '天数',
    type: 'category',
    scale: true,
    nameTextStyle: {
      color: '#fff'
    },
    nameGap: 25,
    nameLocation: 'center',
    splitLine: {
      lineStyle: {
        type: 'dashed'
      }
    }
  },
  yAxis: {
    name: '',
    type: 'value',
    scale: true,
    nameTextStyle: {
      color: '#fff'
    },
    splitLine: {
      lineStyle: {
        type: 'dashed'
      }
    },
    axisLabel: {
      formatter: function(val) {
        return nFormatter(val)
      }
    }
  },
  series: [
    {
      name: '',
      type: 'line'
    }
  ],
  grid: {
    top: 20,
    left: '15%',
    right: '5%',
    bottom: 45
  }
}
